apiVersion: v1
kind: Service
metadata:
  name: nginx-loadbalancer
  namespace: default
spec:
  type: LoadBalancer
  ports:
    - port: 8080
      name: http
      protocol: TCP
      targetPort: http
  selector:
    k8s-app: nginx
